﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.Design;

namespace Marmat.Forms.Skin
{
    /// <summary>
    ///  扩展 ButtonGroup 的设计模式行为。
    /// </summary>
    public class ButtonGroupDesigner : System.Windows.Forms.Design.ControlDesigner
    {
        /// <summary>
        /// 获取指示组件的移动功能的选择规则。
        /// </summary>
        public override SelectionRules SelectionRules
        {
            get
            {
                SelectionRules rules = base.SelectionRules;
                if (this.Control.AutoSize)
                    rules = SelectionRules.Moveable | SelectionRules.TopSizeable | SelectionRules.BottomSizeable | SelectionRules.Locked;
                return rules;
            }
        }
    }
}
